<?php

/**
 * Fournisseur form.
 *
 * @package    SdCommerce
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class FournisseurForm extends BaseFournisseurForm {

    public function configure() {
        unset($this['created_at'], $this['updated_at'], $this['objectifs_list'], $this['tarifs_list']);
        $this->widgetSchema['code']->setAttribute("class", "required");
        $this->widgetSchema['raison_sociale']->setAttribute("class", "required");
        $this->widgetSchema['code']->setAttribute("readonly", "readonly");
        $this->widgetSchema['raison_sociale']->setAttribute("minlength", "6");
        $this->widgetSchema['raison_sociale']->setAttribute("maxlength", "100");
        $this->widgetSchema['site_web']->setAttribute("class", "url");
        $this->widgetSchema['email']->setAttribute("class", "email");
        $this->widgetSchema['telephone1']->setAttribute("class", "required");
        
    }

}
